package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    /**
     * 按ID选择计数
     *
     * @param dishIds dish id
     * @return {@link Integer}
     */
    Integer selectCountByIds(List<Long> dishIds);

    /**
     * 添加套餐
     *
     * @param setmealDish 套餐
     */
    void addSetmealDish(SetmealDish setmealDish);


    /**
     * @param ids ids
     */
    void delSetmealDish(List<Long> ids);

    /**
     * 获取套餐
     *
     * @param id id
     * @return {@link List}<{@link SetmealDish}>
     */
    List<SetmealDish> getSetmealDish(Long id);
}
